﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClientManage.aspx.cs" Inherits="GreatB2C.Web.Manage.CRM.Client.ClientManage" %>

<%@ Register Assembly="AspPagerControl" Namespace="AspPagerControl" TagPrefix="AspPagerControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>客户关系管理--列表页面</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css"
        rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/pagebase.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <span style="height: 25px; line-height: 25px;"><span>
            <img src="../../../App_Themes/AdminDefaultTheme/Images/localGIF.gif" align="absmiddle"
                style="border-width: 0px;" />后台管理 </span><span>&gt;&gt; </span><span><a>客户关系管理</a></span><span>
                    &gt;&gt; </span><span><a>客户管理</a></span></span>
    </div>
    <div>
        <table class="border" cellspacing="1" cellpadding="0" border="0" border="0" style="width: 100%;">
            <tr class="tdbg">
                <td align="right">
                    <asp:Button ID="Button2" runat="server" Text="客户交接" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                        onmouseout="this.className='btnstyle_blue'" />
                    &nbsp;<asp:Button ID="Button3" runat="server" Text="合并客户" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                        onmouseout="this.className='btnstyle_blue'" />
                    &nbsp;<asp:Button ID="btnAddEnterprise" runat="server" Text="添加企业客户" class="btnstyle_blue"
                        onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />&nbsp;<asp:Button ID="btnAddPersonal" runat="server" Text="添加个人客户" class="btnstyle_blue"
                        onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                    <asp:Button ID="btnAddEnterprise0" runat="server" Text="批量分配客户" class="btnstyle_blue"
                        onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                </td>
            </tr>
            <tr class="tdbg">
                <td align="right">
                    &nbsp;&nbsp;
                    <asp:Button ID="btnAddEnterprise1" runat="server" Text="批量设为我的客户" class="btnstyle_blue"
                        onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                    &nbsp;<asp:Button ID="btnAddEnterprise2" runat="server" Text="批量释放为公共客户" class="btnstyle_blue"
                        onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                    &nbsp;<asp:Button ID="btnAddEnterprise3" runat="server" Text="删除选中的客户" class="btnstyle_blue"
                        onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table class="border" cellspacing="1" cellpadding="0" border="0" border="0" style="width: 100%;">
            <tr class="tdbg" align="center">
                <td valign="top">
                    <asp:GridView ID="gdvList" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" OnRowCommand="gdvList_RowCommand">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField HeaderText="编号" DataField="ClientId" Visible="False" />
                            <asp:TemplateField HeaderText="&lt;input type='checkbox' id='chk' name='chk' onclick='checkJs(this.checked);'  /&gt;全选">
                                <ItemTemplate>
                                    <input type="checkbox" id="checkboxname" name="checkboxname" value='' onclick='SingleCheckJs();' />
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="序号">
                                <ItemTemplate>
                                    <%# (Container.DataItemIndex+1).ToString()%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="客户名称" DataField="TrueName">
                                <HeaderStyle Width="20%" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="组别" DataField="Title" />
                            <asp:BoundField HeaderText="阶段" DataField="OfficePhone" />
                            <asp:BoundField HeaderText="所有者" DataField="Mobile" />
                            <asp:BoundField HeaderText="原所有者" DataField="Email" />
                            <asp:BoundField DataField="LastContactedTime" HeaderText="最近联系时间" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr align="center">
                                            <td>
                                                <asp:LinkButton ID="lbView" runat="server" CommandArgument='<%#Eval("ContacterId")%>'
                                                    CommandName="ViewCommand">查看</asp:LinkButton>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="lbUpdate" runat="server" CommandArgument='<%#Eval("ContacterId")%>'
                                                    CommandName="UpdateProgram">修改</asp:LinkButton>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="lbDelete" runat="server" CommandArgument='<%#Eval("ContacterId")%>'
                                                    CommandName="DeleteCommand" OnClientClick="return  ConfirmDelete();">删除</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ControlStyle Width="40px" />
                                <ItemStyle HorizontalAlign="Center" Wrap="True" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr class="tdbg" align="center">
                <td align="center">
                    <AspPagerControl:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
                        PrevPageText="上一页" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"
                        CustomInfoHTML="&nbsp;" PageSize="10" ShowCustomInfoSection="Left" AlwaysShow="True"
                        CurrentPageButtonPosition="Beginning" ShowPageIndexBox="Never">
                    </AspPagerControl:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
